//
//  STOrderNewDetailFileViewController.swift
//  SeaTransportManage
//
//  Created by guopengwen on 2021/11/30.
//

import UIKit

class STOrderNewDetailFileViewController: GPBaseViewController {
    
    var type: Int = 0
    var rateOfProgress: Int = 0
    
    override func viewDidLoad() {
        super.viewDidLoad()
        setNavBarTitle("订单详情")

        let bgView = UIView.init()
        bgView.backgroundColor = UIColor.white
        bgView.layer.cornerRadius = 12
        view.addSubview(bgView)
        bgView.snp.makeConstraints { (make) in
            make.top.equalTo(16)
            make.left.equalTo(16)
            make.right.equalTo(-16)
            make.height.equalTo(80)
        }
        
        let lb = UILabel.init()
        lb.text = "RTSU5454321+订单号.xls"
        lb.textAlignment = .center
        lb.textColor = UIColor.init(hexString: "#323232", alpha: 1)
        lb.font = UIFont.systemFont(ofSize: 16, weight: UIFont.Weight.heavy)
        bgView.addSubview(lb)
        lb.snp.makeConstraints { (make) in
            make.centerY.equalTo(bgView)
            make.left.equalTo(16)
            make.height.equalTo(22)
        }
        
        let btn = UIButton.init(type: .custom)
        btn.setImage(UIImage.init(named: "icon_down"), for: UIControl.State.normal)
        bgView.addSubview(btn)
        btn.snp.makeConstraints { (make) in
            make.centerY.equalTo(bgView)
            make.right.equalTo(-27)
            make.width.equalTo(42)
            make.height.equalTo(42)
        }
        
        btn.addTarget(self, action: #selector(downLoadFileAction), for: UIControl.Event.touchUpInside)
    }
    
    @objc func downLoadFileAction() {
        
    }

}
